package com.yiang.hotel.feign;

import com.yiang.feign.HotelClient;
import com.yiang.hotel.service.HotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HotelFeign implements HotelClient {

    @Autowired
    private HotelService hotelService;

    @Override
    public String getHotel() {
        return hotelService.list().toString();
    }
}
